package com.zdsoft.finance.demo.repository;

import com.zdsoft.finance.demo.entity.DClient;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Demo 客户数据操作仓库
 * Created on 2016-09-14
 * @author Maple
 * @version 1.0
 */
public interface DClientRepository extends PagingAndSortingRepository<DClient,String>, JpaSpecificationExecutor<DClient> {
    /**
     * 根据名称模糊分页查询
     * @param name 名称
     * @param pageRequest 分页信息
     * @return 客户分页集合信息
     */
    public Page<DClient> findByNameLike(String name,Pageable pageRequest);
}
